package com.woniuedu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuedu.dao.SubjectMapper;
import com.woniuedu.entity.Subject;
import com.woniuedu.service.ISubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author: 承雍
 * Date: 2022/4/20 9:51
 * define：类注释
 * Description:课程类型业务实现层
 */

@Service
public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> implements ISubjectService {
    @Autowired(required = false)
    private SubjectMapper subjectMapper;

    @Override
    public List<Subject> findAllSubject(Subject subject) {
        return subjectMapper.findAllSubject(subject);
    }
}
